import base from 'store/type/pageList'
export default {
  name: 'grid_panel',
  extends: base,
  getters: {
    fetchPath(state) {
      var path
      state.listModel.actions && state.listModel.actions.forEach((action) => {
        if (action.code === 'search') {
          if (action.path) {
            path = action.path
          }
        }
      })
      return path || state.path || (state.listModel && state.listModel.path)
    }
  },
  actions: {}
}
